]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Fix up previous change; connect to signals correctly
authorColin Walters <walters@src.gnome.org>
Thu, 20 Nov 2008 15:47:13 +0000 (15:47 +0000)
committerColin Walters <walters@src.gnome.org>
Thu, 20 Nov 2008 15:47:13 +0000 (15:47 +0000)
svn path=/trunk/; revision=66

js/ui/main.js

index 882e34b2eddba4bf40b946d7998040289eb05b46..5b21ea41ba549aa50b1be89a65b5b627a3d30c22 100644 (file)
@@ -32,10 +32,12 @@ function start() {
         // Make sure not more than one run dialog is shown.
         if (!run_dialog) {
             run_dialog = new RunDialog.RunDialog();
-            run_dialog.on_run = run_dialog.on_cancel = function() {
+           let handler = function() {
                 run_dialog.destroy();
                 run_dialog = null;
             };
+            run_dialog.connect('run', handler);
+            run_dialog.connect('cancel', handler);
             run_dialog.show();
         }
     });